<template id="login_wx">
	<div class="">
		 {{code}}
		
	</div>
</template>

<script>
	
	export default {
		name: 'HelloWorld',
		components: {},
		data() {
			return {

				apiurl: 'http://yogahome.top/user/qqlogin',
				code:1,
			}
		},

		computed: {

		},
		created() {
		
			let obj = {
				state: 0,
				code: 1,
			};
			let _this = this
			let qs = require('qs');
			this.$axios.post(_this.apiurl,
					qs.stringify(obj), {
						headers: {
							'Content-Type': 'application/x-www-form-urlencoded'
						}

					}
				)
				.then(function(response) {
//	       console.log($route.params.code)
//	       console.log($route.params.state)
				})
				.catch(function(error) {
					console.log(error);
				});

		},
		methods: {

		},

		// watch也没用   你要什么效果 daojishi
	}
</script>

<style>

</style>